//
//  BMMainTabBarController.m
//  BMBlueMoonSFA
//
//  Created by mac on 16/6/5.
//  Copyright © 2016年 www.tang. All rights reserved.
//

#import "BMMainTabBarController.h"
#import "UITabBarController+BMExtension.h"
#import "TFLModalViewController.h"
#import "TFLModel2ViewController.h"
@interface BMMainTabBarController ()

@end

@implementation BMMainTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //创建tabbar子控制器
    [self initViewControllers];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)initViewControllers
{
    // 向主标签控制器中添加导航控制器
    [self addViewControllerWithClass:[TFLModalViewController class]
                               title:@"待收货"
               selectBackgroundImage:@"icon_waitReceblue"
               normalBackgroundImage:@"icon_waitRece"];
    
    [self addViewControllerWithClass:[TFLModel2ViewController class]
                               title:@"已收货"
               selectBackgroundImage:@"icon_beTokenblue"
               normalBackgroundImage:@"icon_beToken"];
}

@end
